package com.miaosha.service;

import com.miaosha.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.miaosha.entity.dto.UserDto;

import java.util.List;


public interface UserService extends IService<User> {
    User login(String username,String password);

    UserDto saveWithRoles(UserDto addUserDto);

    List<UserDto> listUserDto();

    void deleteWithRoles(Long id);

    UserDto getByIdWithRoles(Long userId);

    void updateWithRoles(UserDto userDto);

    User selectByUsername(String username);
    User selectByPhone(String phone);
}
